<?php

use Illuminate\Routing\Router;

Route::group([
	'prefix'        => 'admin/DecoCompanyPreferential',
	'namespace'     => 'Beerus\\Modules\\DecoCompanyPreferential\\Controllers',
	'middleware'    => [
		'web',
		'admin',
	],
], function (Router $router) {
	// 列表
	$router->get('/lists', 'IndexController@index')->name('preferential.list');
	$router->get('/violation/{id}', 'IndexController@violation');
	$router->get('/cancelViolation/{id}', 'IndexController@cancelViolation');
    $router->get('/check/{id}', 'IndexController@check');
    $router->post('/submit', 'IndexController@submit');
});
